﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DrSoftsFrame.Servers;

namespace PreeRegisterDAL
{
    public class DeptUpdateDAL
    {
        /// <summary>
        /// 获取科室更新信息  
        /// </summary>
        /// <param name="deptid"></param>
        /// <returns></returns>
        public static DataSet GetDeptUpdateInfo(string deptid)
        {
            try
            {
                string sqlstr = string.Format(@"select * from DictDept where No_Dept={0}", deptid);
                ClinicDb mydb = new ClinicDb();
                DataSet ds = mydb.ExecuteSelect(sqlstr);
                if (ds == null || ds.Tables.Count < 1)
                {
                    return null;
                }
                ds.Tables[0].TableName = "DictDept";
                return ds;

            }
            catch (Exception err)
            {

                throw;
            }
        }
    }
}
